<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title></title>
		<script type="text/javascript">
//function timer(){
//      var t=setTimeout("alert('3 seconds')",3000);
//}
function disptime(){
		var today= new Date();
		var hh=today.getHours();
		var mm=today.getMinutes();
		var ss=today.getSeconds();
		
		document.getElementById("myc").innerHTML="现在是"+hh+":"+mm+":"+ss;
		
}
		var myt=setInterval("disptime()",1000);
//				document.write("你好欢迎访问贵美商城<br />");
//				var myDate = new Date();
//				document.write(myDate.toLocaleString());
//				var fen=myDate.getMinutes();
//				document.write(fen+"分<br />");
//				document.write(miao+"秒<br />");
var today= new Date();
var wek=today.getDay();
var da=parseInt(wek);
		switch(da){
					case 1:
					document.write("星期一")
					break;
					case 2:
					document.write("星期二")
					break;
					case 3:
					document.write("星期三")
					break;
					case 4:
					document.write("星期四")
					break;
					case 5:
					document.write("星期五")
					break;
					case 6:
					document.write("星期六")
					break;
					case 7:
					document.write("星期日")
					break;
				}
			
		</script>
<!--<input type="button" value="停止" onclick="clearInterval(myt)" />-->
	</head>
	<body>
		<div id="myc">
			
		</div>
	</body>
</html>
